package handlers

import (
	"bala-bala-drive/models"
	"github.com/gin-gonic/gin"
)

func Detail(c *gin.Context) {
	var article models.Article
	id := c.Query("id")
	models.DB.Where("id=?", id).Find(&article)
	c.JSON(200, gin.H{
		"code": 200,
		"msg":  "查询成功",
		"data": article,
	})
	return

}
